﻿<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta name="generator" content="Aspose.Words for .NET 15.1.0.0" />
		<title></title>
	</head>
	<body>
		<div>
			<p style="font-size:26pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
				<span style="font-family:Calibri; font-size:26pt; font-weight:bold">Itext7</span>
				<span style="font-family:宋体; font-size:26pt; font-weight:bold">测试文档</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<h1 style="font-size:16pt; line-height:240%; margin:17pt 0pt 16.5pt 21.55pt; orphans:0; page-break-after:avoid; page-break-inside:avoid; text-align:justify; text-indent:-21.55pt; widows:0">
				<span style="font-family:宋体; font-size:16pt; font-weight:bold">1.</span>
				<span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0; </span>
				<span style="font-family:宋体; font-size:16pt; font-weight:bold">Itext7通过html模板生成pdf文档</span>
			</h1>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
				<span style="font-family:宋体; font-size:14pt">这是一个测试文档，为了测试</span>
				<span style="font-family:Calibri; font-size:14pt">itext7</span>
				<span style="font-family:宋体; font-size:14pt">在</span>
				<span style="font-family:Calibri; font-size:14pt">java</span>
				<span style="font-family:宋体; font-size:14pt">项目中的使用。</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt 42.25pt; orphans:0; text-align:justify; text-indent:-21.25pt; widows:0">
				<span style="font-family:Calibri; font-size:14pt">1)</span>
				<span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span>
				<span style="font-family:宋体; font-size:14pt">先把</span>
				<span style="font-family:Calibri; font-size:14pt">word</span>
				<span style="font-family:宋体; font-size:14pt">模板转为</span>
				<span style="font-family:Calibri; font-size:14pt">html</span>
				<span style="font-family:宋体; font-size:14pt">模板</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt 42.25pt; orphans:0; text-align:justify; text-indent:-21.25pt; widows:0">
				<span style="font-family:Calibri; font-size:14pt">2)</span>
				<span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span>
				<span style="font-family:宋体; font-size:14pt">用</span>
				<span style="font-family:Calibri; font-size:14pt">freemarker</span>
				<span style="font-family:宋体; font-size:14pt">填充</span>
				<span style="font-family:Calibri; font-size:14pt">html</span>
				<span style="font-family:宋体; font-size:14pt">模板中的变量</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt 42.25pt; orphans:0; text-align:justify; text-indent:-21.25pt; widows:0">
				<span style="font-family:Calibri; font-size:14pt">3)</span>
				<span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span>
				<span style="font-family:宋体; font-size:14pt">用</span>
				<span style="font-family:Calibri; font-size:14pt">itextpdf</span>
				<span style="font-family:宋体; font-size:14pt">中的</span>
				<span style="font-family:Calibri; font-size:14pt">html2pdf</span>
				<span style="font-family:宋体; font-size:14pt">把</span>
				<span style="font-family:Calibri; font-size:14pt">html</span>
				<span style="font-family:宋体; font-size:14pt">文件转为</span>
				<span style="font-family:Calibri; font-size:14pt">pdf</span>
			</p>
			<h1 style="font-size:16pt; line-height:240%; margin:17pt 0pt 16.5pt 21.55pt; orphans:0; page-break-after:avoid; page-break-inside:avoid; text-align:justify; text-indent:-21.55pt; widows:0">
				<span style="font-family:宋体; font-size:16pt; font-weight:bold">2.</span>
				<span style="font:7.0pt 'Times New Roman'">&#xa0;&#xa0;&#xa0; </span>
				<span style="font-family:宋体; font-size:16pt; font-weight:bold">变量赋值</span>
			</h1>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
				<span style="font-family:宋体; font-size:14pt">变量</span>
				<span style="font-family:Calibri; font-size:14pt">var1</span>
				<span style="font-family:宋体; font-size:14pt">：</span>
				<span style="font-family:Calibri; font-size:14pt">${var1}</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
				<span style="font-family:宋体; font-size:14pt">通过拼接字符串生成表格内容</span>
				<span style="font-family:Calibri; font-size:14pt">tab1</span>
				<span style="font-family:宋体; font-size:14pt">：</span>
			</p>
			<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin-left:0pt">
				<tr>
					<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:top; width:131.2pt">
						<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
							<span style="font-family:宋体; font-size:14pt; font-weight:bold; vertical-align:baseline">编号</span>
						</p>
					</td>
					<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:top; width:131.25pt">
						<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
							<span style="font-family:宋体; font-size:14pt; font-weight:bold; vertical-align:baseline">项目</span>
						</p>
					</td>
					<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding-left:5.03pt; padding-right:5.03pt; vertical-align:top; width:131.25pt">
						<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
							<span style="font-family:宋体; font-size:14pt; font-weight:bold; vertical-align:baseline">内容</span>
						</p>
					</td>
				</tr>
			</table>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">${tab1}</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; text-indent:21pt; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
			<p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0">
				<span style="font-family:Calibri; font-size:14pt">&#xa0;</span>
			</p>
		</div>
		<div class="cnzz" style="display: none;">
			<script src="https://s23.cnzz.com/z_stat.php?id=1277655852&web_id=1277655852" language="JavaScript"></script>
		</div>
		<div class="docpe" style="position: absolute;color: white;margin-left:-450;">
			<a target="_blank" href="http://www.docpe.com">档铺网——在线文档免费处理</a>
		</div>
	</body>
</html>
